const base = {
	namespaced: true,
	state: {
		showCat: false,
		articlePageCurrent:1,
		novelPageCurrent:1,
		poetryPageCurrent:1
	},
	getters: {
		showCat(state) {
			return state.showCat;
		},
		articlePageCurrent(state) {
			return state.articlePageCurrent;
		},
		novelPageCurrent(state) {
			return state.novelPageCurrent;
		},
		poetryPageCurrent(state) {
			return state.poetryPageCurrent;
		}
	},
	mutations: {
		setShowCat(state){
			state.showCat = !state.showCat;
		},
		setArticlePageCurrent(state,articlePageCurrent){
			state.articlePageCurrent = articlePageCurrent;
		},
		setNovelPageCurrent(state,novelPageCurrent){
			state.novelPageCurrent = novelPageCurrent;
		},
		setPoetryPageCurrent(state,poetryPageCurrent){
			state.poetryPageCurrent = poetryPageCurrent;
		}
	},
	actions: {
	}
}

export default base
